import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
/** @type {import('eslint').Linter.Config[]} */
export default [
  {
    files: ["**/*.{js,ts,jsx,tsx}"],
  },
  { ignores: ["webpack.*.js", "public/*.js"] },
  {
    languageOptions: {
      globals: globals.browser,
    },
  },
  {
    plugins: {
      "react-hooks": eslintPluginReactHooks,
    },
    rules: eslintPluginReactHooks.configs.recommended.rules,
  },
  pluginJs.configs.recommended,
  ...tseslint.configs.recommended,
  pluginReact.configs.flat.recommended,
];
